package com.zyt.service.impl;

import com.zyt.entity.Brand;
import com.zyt.mapper.BrandMapper;
import com.zyt.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class BrandServiceImpl implements BrandService {
    @Autowired
    private BrandMapper brandMapper;
    @Override
    public List<Brand> selectAllBrand() {
        List<Brand> brands = brandMapper.selectAllBrand();
        return brands;
    }
    @Override
    public List<Brand> selectAllBrandcou() {
        return brandMapper.selectAllBrandcou();
    }
    @Override
    public void insertBrand(Brand brand) {
        brandMapper.insertBrand(brand);
    }
    @Override
    public void deleteByBrand(Integer id) {
        brandMapper.deleteByBrand(id);
    }
}
